﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Rodunu.Business.Models.Movies.Apple
{
    [DataContract(Name = "AppleTrailer", Namespace = "")]
    public class AppleTitle
    {
        string _location;

        [DataMember]
        public string Title;
        [DataMember]
        public string ReleaseDate;
        [DataMember]
        public string Studio;
        [DataMember]
        public string Poster;
        [DataMember]
        public string MovieSite;
        [DataMember]
        public string Location
        {
            get { return _location; }
            set
            {
                _location = @"www.apple.com" + value;
            }
        }
        [DataMember]
        public string Director;
        [DataMember]
        public string Rating;
        [DataMember]
        public List<string> Genre;
        [DataMember]
        public List<string> Actors;
        [DataMember]
        public List<Trailer> Trailers;
    }

    [DataContract(Name = "Trailer", Namespace = "")]
    public class Trailer
    {
        [DataMember]
        public string PostDate;
        [DataMember]
        public string Url;
        [DataMember]
        public string Type;
        [DataMember]
        public string Exclusive;
        [DataMember]
        public bool HD;
    }
}
